	<div class="icon32 icon32-posts-post" id="icon-edit"><br></div>
	
	<h2>Product <a class="add-new-h2" href="<?php echo $CFG->config['base_url']?>product/admin/new_product">Add New</a></h2>


<ul class="subsubsub">
	<li class="all"><a class="current" href="<?php echo $CFG->config['base_url']?>product/admin">Tous <span class="count">(<?php echo $total?>)</span></a> |</li>
	<li class="publish"><a href="<?php echo $CFG->config['base_url']?>product/admin/index/status/publish">Activé <span class="count">(<?php echo $totalActive?>)</span></a></li>
</ul>
<form method="post" action="" id="posts-filter">

<p class="search-box">
	<label for="post-search-input" class="screen-reader-text">Rechercher Produit:</label>
	<input type="search" value="" name="s" id="post-search-input">
	<input type="submit" value="Search Posts" class="button" id="search-submit" name="">
</p>
<div class="tablenav top">

		<div class="alignleft actions">
			<select name="action">
				<option selected="selected" value="0">Actions Groupées</option>
				<option class="hide-if-no-js" value="edit">Modifier</option>
				<option value="trash">Déplacer dans la Corbeille</option>
			</select>

		</div>
		<div class="alignleft actions">
			<select name="filter[date]">
				<option value="0" selected="selected">Show all dates</option>
				<?php 
				foreach($option_filter_date as $list){
					$s=$list->YearMonth==$filter['date']?' selected ' : '';
					echo "<option value='{$list->YearMonth}' $s>{$list->month} - {$list->year}</option>";
				}
				?>
			</select>
			<select class="postform" id="cat" name="filter[category]">
				<option value="" >Category</option>
					<?php echo $option_filter_category?>
			</select>
			<input type="submit" value="Filter" class="button" id="post-query-submit">
		</div>

<div class="tablenav-pages one-page"><span class="displaying-num"><?php echo $totalActive?> produits</span>
<span class="pagination-links"><a href="http://localhost/wordpress/wp-admin/edit.php" title="Go to the first page" class="first-page disabled">Â«</a>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the previous page" class="prev-page disabled"> < </a>
<span class="paging-input"><input type="text" size="1" value="1" name="paged" title="Current page" class="current-page"> of <span class="total-pages">1</span></span>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the next page" class="next-page disabled">></a>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the last page" class="last-page disabled"> >> </a></span>
</div>


		<br class="clear">
	</div>
<table class="wp-list-table widefat fixed posts">
	<thead>
	<tr>
		<th class="manage-column column-cb check-column" id="cb" scope="col">
		<label for="cb-select-all-1" class="screen-reader-text">Select All</label>
		<input type="checkbox" id="cb-select-all-1"/>
		</th>
		<th class="manage-column column-photo">Photo</th>
		<th class="manage-column column-title sortable desc" id="title" scope="col">
		<?php
			$nameColSort='prd_name';
			$valueColSort='DESC';
			if(!empty($sort)){
				foreach($sort as $nameColSort=>$valueColSort) break;
			}
		?>
		<input id="sort_col" type="hidden" value="<?php echo $valueColSort?>" name="sort[<?php echo $nameColSort?>]" />
		
		<script type="text/javascript">
			function sort($nameCol){
				$typeOfSort=$('#sort_col').val();
				if($typeOfSort=='DESC')$typeOfSort='ASC';
				else $typeOfSort='DESC';
				$('#sort_col').attr('name','sort['+$nameCol+']');
				$('#sort_col').val($typeOfSort);
				$('#posts-filter').submit();
			}
		</script>	
		<a href="#" onclick="sort('prd_name')"><span>Title</span><span class="sorting-indicator"></span></a>
		</th>
		<th class="manage-column column-categories" id="author" scope="col">Categories</th>
		<th class="manage-column column-author" id="categories" scope="col">Mots Cles</th>
		<th class="manage-column column-tags" id="tags" scope="col">Tags</th>
		<th class="manage-column column-price" scope="col">Prix</th>
		<th class="manage-column column-comments num sortable desc" id="comments" scope="col">
			<a href="http://localhost/wordpress/wp-admin/edit.php?orderby=comment_count&amp;order=asc"><span><span class="vers">
			<div class="comment-grey-bubble" title="Comments"></div></span></span><span class="sorting-indicator"></span></a>
		</th>
		<th class="manage-column column-date sortable asc" id="date" scope="col">
			<a href="#" onclick="sort('prd_date_public')"><span>Date</span><span class="sorting-indicator"></span></a></th>	</tr>
	</thead>

	<tfoot>
	<tr>
		<th class="manage-column column-cb check-column" scope="col">
		<label for="cb-select-all-2" class="screen-reader-text">Select All</label>
		<input type="checkbox" id="cb-select-all-2">
		</th>
		<th class="manage-column column-photo"">Photo</th>
		<th class="manage-column column-title sortable desc" scope="col">
		<a href="#"><span>Title</span><span class="sorting-indicator"></span></a>
		</th>
		<th class="manage-column column-categories" scope="col">Categories</th>
		<th class="manage-column column-author" scope="col">Mots Cles</th>
		<th class="manage-column column-tags" scope="col">Tags</th>
		<th class="manage-column column-price" scope="col">Prix</th>
		<th class="manage-column column-comments num sortable desc" scope="col">
			<a href="#" onclick="sort('prd_name')"><span><span class="vers">
			<div class="comment-grey-bubble" title="Comments"></div></span></span><span class="sorting-indicator"></span></a>
		</th>
		<th class="manage-column column-date sortable asc" scope="col">
			<a href="#" onclick="sort('prd_date_public')"><span>Date</span><span class="sorting-indicator"></span></a>
		</th>
	</tr>
	</tfoot>

	<tbody id="the-list">
	<?php 
	if(!empty($listAllProducts))
		foreach ($listAllProducts as $pdr){
		$product=new product($pdr->product_id);
	?>
		<tr valign="top" class="post type-post status-publish format-image hentry" id="post-<?php echo $product->product_id?>">
			<th class="check-column" scope="row">
				<label for="cb-select-14" class="screen-reader-text">Select test product</label>
				<input type="checkbox" value="<?php echo $product->product_id?>" name="post[]" id="cb-select-<?php echo $product->product_id?>">
			</th>
			<td class="photo column-photo"><img height="50" src="<?php echo $CFG->config['base_url']?>images/thumbnails/<?php echo $product->link_photo?>"/></td>
			<td class="post-title page-title column-title">
				<strong>
				<a title="Modifier <?php echo $product->prd_name?>" href="<?php echo $CFG->config['base_url']?>product/admin/edit/<?php echo $product->product_id?>" class="row-title"><?php echo $product->prd_name?></a>
				</strong>
				<div class="row-actions">
				<span class="edit"><a title="Modifier Produit" href="<?php echo $CFG->config['base_url']?>product/admin/edit/<?php echo $product->product_id?>">Modifier</a> | </span>
				<?php $activeProduct=$product->prd_active?'deactive':'reactive';
				$activeProductShow=$product->prd_active?'Déactiver':'reactiver';
				?>
				<span class="trash"><a href="<?php echo $CFG->config['base_url']?>product/admin/<?php echo $activeProduct.'/'.$product->product_id?>" title="placer dans le corbeille" class="submitdelete"><?php echo $activeProductShow?></a> | </span>
				<span class="view"><a rel="permalink" title="Voir <?php echo $product->prd_name?>" href="<?php echo $CFG->config['base_url']?><?php echo $product->link_cat_product[0]?>">Apperçu</a></span></div>
			</td>
			<td class="categories column-categories"><?php echo implode(",",$product->category)?></td>
			<td class="column-keywords"><?php echo $product->keywords?></td>
			<td class="tags column-tags"><?php echo $product->tag?></td>
			<th class="column-price"><?php echo $product->prd_price?></th>
			<td class="comments column-comments"><div class="post-com-count-wrapper">
			<a class="post-com-count" title="0 pending" href="<?php echo $CFG->config['base_url']?>product/admin/edit_comments/<?php echo $product->product_id?>"><span class="comment-count">0</span></a>			</div></td>
			<td class="date column-date"><abbr title="<?php echo date('d-m-Y H:i:s',$product->prd_date_public)?>"><?php echo date('d-m-Y',$product->prd_date_public)?></abbr><br/><?php echo $product->prd_active==1?'Public':'Privé'?></td>
		</tr>
		<?php }?>
	</tbody>
</table>
	<div class="tablenav bottom">

		<div class="alignleft actions">
			<select name="action2">
<option selected="selected" value="-1">Bulk Actions</option>
	<option class="hide-if-no-js" value="edit">Edit</option>
	<option value="trash">Move to Trash</option>
</select>
<input type="submit" value="Apply" class="button action" id="doaction2" name="">
		</div>
		<div class="alignleft actions">
		</div>
<div class="tablenav-pages one-page"><span class="displaying-num">2 items</span>
<span class="pagination-links"><a href="http://localhost/wordpress/wp-admin/edit.php" title="Go to the first page" class="first-page disabled"> « </a>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the previous page" class="prev-page disabled">â€¹</a>
<span class="paging-input">1 of <span class="total-pages">1</span></span>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the next page" class="next-page disabled"> < </a>
<a href="http://localhost/wordpress/wp-admin/edit.php?paged=1" title="Go to the last page" class="last-page disabled">»</a></span></div>
		<br class="clear">
	</div>

</form>


<div id="ajax-response"></div>
<br class="clear">
</div>






<div class="clear"></div>

</div>

<div class="clear"></div>